package com.tougutips.like.config;

import com.baomidou.mybatisplus.extension.plugins.OptimisticLockerInterceptor;
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author 张治怡
 * @version 1.0
 * @description MybatisPlus配置类
 * @dateTime 2022/7/21 17:53
 */

@Configuration
@MapperScan("com.tougutips.like.mapper")
public class MPConfig {
    /**
     * 乐观锁插件
     */
/*    @Bean
    public OptimisticLockerInterceptor optimisticLockerInterceptor() {
        return new OptimisticLockerInterceptor();
    }*/

/*    *//**
     * 分页插件
     *//*
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }*/
}

